 <template>
	<view class="search-input">
		<div class="searchs1">
			
			<div class="teb1">
				<!-- 顶部teb栏 -->
					<view class="head-nav">
						<view  @click="toPage(1)" >
							<img src="http://www.yuebi.online/images/26518404-2d15-4917-b4ea-039f1a3da0c0.png" alt="" class=" ">
							<view class="">全部订单</view>
						</view>
						<view  @click="toPage(2)" >
							<img src="http://www.yuebi.online/images/28df0d3d-1505-4cf8-8344-1f68ccb59145.png" alt="" class=" ">
							<view class="">商品上架</view>
						</view>
						<view @click="toPage(3)" > 
							<img src="http://www.yuebi.online/images/cd36e7fb-05fa-4bea-b2cf-9cdbca1c8349.png" alt="" class=" ">
							<view class="">商品下架</view>
						</view>
						<view  @click="toPage(4)" >
							<img src="http://www.yuebi.online/images/804e720c-b919-4468-9290-e436d9deea24.png" alt="" class=" ">
							<view class="">在售商品</view>
						</view>
					</view>
					<view class="head-nav">
						<view  @click="toPage(5)" >
							<img src="http://www.yuebi.online/images/7b1f7ffe-be22-4110-991a-63b73fb600c1.png" alt="" class=" ">
							<view class="">新建优惠</view>
						</view>
						<view  @click="toPage(6)" >
							<img src="http://www.yuebi.online/images/fb9e306a-fae0-4e51-8fe6-82ecc6b71b10.png" alt="" class=" ">
							<view class="">赠优惠券</view>
						</view>
					</view>
			</div>
		</div>
		<!-- 底部teb栏 -->
		<TabBar currentPage="index"></TabBar>
	</view>
</template>

<script>
	import TabBar from '@/pages/common/components/TabBar.vue'
	export default {
		
		data () {
			return {
				navIndex: 0,
				queryAllOrder:[],
				updateOrder:[],
			}
		},
		methods: {
			toPage(i){
				if(i ==1){
					uni.navigateTo({
					    url: '/pages/product/allorder'
					});
				}else if(i ==2){
					uni.navigateTo({
					    url: '/pages/search/productListing'
					});
				}else if(i ==3){
					uni.navigateTo({
					    url: '/pages/search/Offshelf'
					});
				}else if(i ==4){
					uni.navigateTo({
					    url: '/pages/search/Goodsonsale'
					});
				}else if(i ==5){
					uni.navigateTo({
					    url: '/pages/product/addCoupon'
					});
				}else if(i ==6){
					uni.navigateTo({
					    url: '/pages/product/coupon'
					});
				}
				
			},
		},
		components: {
			TabBar
		},
		mounted () {
		
			
		},
		
	}
</script>

<style scoped>
	.search-input {
		font-size: 28rpx;
	}
	.searchs1{
		width: 100%;
	}
	.head-nav{
		width: 100%;
		margin-top: 20rpx;
		display: flex;
		/* justify-content: space-around; */
		justify-content: flex-start;
		align-items: center;
	}
	.head-nav view{
		margin-left: 30rpx;
		text-align: center;
	}
	.activite {
		text-decoration:underline
	}
	.head-nav img{
		width: 40px;
		height: 40px;
		margin-left: 16rpx;
		text-align: center;
	}
	
</style>
 